var game = require('../../addon/addon/build/Debug/game.node');

var service = new game.Aoi();
var aoi = function(maxX, maxY){
    service.SetAOIRegion(maxX, maxY);
};


aoi.prototype.playerEnter = function(player, cb){
    service.PlayerEnter(player, cb);
};

aoi.prototype.playerLeave = function(uid, cb){
    service.PlayerLeave(uid, cb);
};

aoi.prototype.playerMove = function(uid, x, y, cb){
    service.PlayerMove(uid, x, y, cb);
};

module.exports = aoi;